<%@ page language="java" contentType="text/html; charset=ISO-8859-1" import = "isg3.domain.*, java.util.*"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="css/estilo.css" />
</head>
<body>
<img src="./images/cabecera2.jpg" alt="FomentoLectura"/>
   <%List concu = Tablon.getInstance().getConcursos();
   	Administrador ad = new Administrador();
	String tit = request.getParameter("tituloConAc");
	Iterator it = concu.iterator();
	while(it.hasNext()){
		Concurso c = (Concurso)it.next();
		if(c.getTitulo().equals(tit)){
			c.setEstado("terminado");
			ad.terminaConcurso(c,c.getEstado());
		}
	}
	%>
	<jsp:forward page="administracion.jsp"></jsp:forward>

</body>
</html>